package PolymorphicHomeworkTest6;
/*
电脑类
 */
public class Computer {
    private String brand; //品牌
    private double price;
    private InsertDrawable[] insertDrawable;  //一台电脑有多个接口

    public Computer(){

    }
    public Computer(String brand,double price){
        this.insertDrawable = new InsertDrawable[5];
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public InsertDrawable[] getInsertDrawable() {
        return insertDrawable;
    }

    public void setInsertDrawable(InsertDrawable[] insertDrawable) {
        this.insertDrawable = insertDrawable;
    }

    @Override
    public String toString() {
        return "Computer{" + "品牌：" + brand + '\'' + ", 价格" + price + '}';
    }

}
